package com.cnsugar.facerecgonized;

import java.awt.image.BufferedImage;

/**
 * @Author ChenZhangKun
 * @Date 2020/4/21 15:11
 */
public class SearchResult {
    private String name;
    private float similar;
    // 客户端ip
    private String host;
    // 客户端发送的原图片
    private BufferedImage bufferedImage;

    public SearchResult(String name, float similar, String host, BufferedImage bufferedImage) {
        this.name = name;
        this.similar = similar;
        this.host = host;
        this.bufferedImage = bufferedImage;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public BufferedImage getBufferedImage() {
        return bufferedImage;
    }

    public void setBufferedImage(BufferedImage bufferedImage) {
        this.bufferedImage = bufferedImage;
    }

    public SearchResult(String name, float similar) {
        this.name = name;
        this.similar = similar;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public float getSimilar() {
        return similar;
    }

    public void setSimilar(float similar) {
        this.similar = similar;
    }
}
